import request from '@/utils/request'

// 查询学习内容类别列表
export function listLeaningCategory(query) {
  return request({
    url: '/examine/leaningCategory/list',
    method: 'get',
    params: query
  })
}

// 查询学习内容类别详细
export function getLeaningCategory(id) {
  return request({
    url: '/examine/leaningCategory/' + id,
    method: 'get'
  })
}

// 新增学习内容类别
export function addLeaningCategory(data) {
  return request({
    url: '/examine/leaningCategory',
    method: 'post',
    data: data
  })
}

// 修改学习内容类别
export function updateLeaningCategory(data) {
  return request({
    url: '/examine/leaningCategory',
    method: 'put',
    data: data
  })
}

// 删除学习内容类别
export function delLeaningCategory(id) {
  return request({
    url: '/examine/leaningCategory/' + id,
    method: 'delete'
  })
}
